<?php
/* @var $this PriceAdminController */
/* @var $model Price */
/* @var $form CActiveForm */
?>

<div class="row-fluid sortable">
	<div class="box span12">
		<div class="box-header well" data-original-title>
			<h2>
				<i class="icon-edit">
				</i>
				Tìm kiếm
			</h2>
			<div class="box-icon">
				<?php
                    FormHelper::getBoxIcon();	
                ?>
			</div>
		</div>
		<div class="box-content">
			<?php $form=$this->beginWidget('CActiveForm', array(
            	'action'=>Yii::app()->createUrl($this->route),
            	'method'=>'get',
                'htmlOptions'=>array(
                    'class'=>'form-horizontal',
                ),
            )); ?>
				<fieldset>
					<div class="control-group">
	                    <?php echo $form->label($model,'price_id',FormHelper::setClass('labelEx')); ?>
						<div class="controls">
		                    <?php echo $form->textField($model,'price_id',FormHelper::setClass('textField')); ?>
						</div>
					</div>
                    <div class="control-group">
	                    <?php echo $form->label($model,'merchant_id',FormHelper::setClass('labelEx')); ?>
						<div class="controls">
		                    <?php echo $form->dropDownList($model,'merchant_id',CHtml::listData(Merchant::model()->findAll(),'merchant_id','merchant_name'),array('prompt'=>' -- Chọn đại lý -- ')); ?>
						</div>
					</div>
                    <div class="control-group">
	                    <?php echo $form->label($model,'product_id',FormHelper::setClass('labelEx')); ?>
						<div class="controls">
		                    <?php echo $form->dropDownList($model,'product_id',CHtml::listData(Product::model()->findAll(),'product_id','product_name'),array('prompt'=>' -- Chọn sản phẩm -- ')); ?>
						</div>
					</div>
                    <div class="control-group">
	                    <?php echo $form->label($model,'price_value',FormHelper::setClass('labelEx')); ?>
						<div class="controls">
		                    <?php echo $form->textField($model,'price_value',FormHelper::setClass('textField')); ?>
						</div>
					</div>    
                    <div class="control-group">
	                    <?php echo $form->label($model,'price_value_sale',FormHelper::setClass('labelEx')); ?>
						<div class="controls">
		                    <?php echo $form->textField($model,'price_value_sale',FormHelper::setClass('textField')); ?>
						</div>
					</div>
                    <div class="control-group">
	                    <?php echo $form->label($model,'price_url',FormHelper::setClass('labelEx')); ?>
						<div class="controls">
		                    <?php echo $form->textField($model,'price_url',FormHelper::setClass('textField')); ?>
						</div>
					</div>     
					<div class="form-actions">
	                    <?php echo CHtml::submitButton('Tìm kiếm',FormHelper::setClass('submitButton')); ?>
					</div>
				</fieldset>
			<?php $this->endWidget(); ?>
		</div>
	</div>
	<!--/span-->
</div>